package study.kafka.connect.connector;

import org.apache.kafka.common.config.ConfigDef;
import org.apache.kafka.connect.connector.Task;
import org.apache.kafka.connect.source.SourceConnector;

import java.util.List;
import java.util.Map;

/**
 *
 * https://www.jianshu.com/p/beee5e4754ba
 * 1)start
 * 2)stop
 * 3)taskClass
 * 4)taskConfigs
 * 5)config
 * 6)version
 */
public class ExampleSourceConnector extends SourceConnector {

    @Override
    public void start(Map<String, String> map) {

    }

    @Override
    public void stop() {

    }

    @Override
    public ConfigDef config() {
        return null;
    }

    @Override
    public Class<? extends Task> taskClass() {
        return null;
    }

    @Override
    public List<Map<String, String>> taskConfigs(int maxTasks) {
        return null;
    }

    public String version() {
        return null;
    }
}
